package com.Test;

import java.util.ArrayList;

public class Test14 {
    public static void main(String[] args) {

        ArrayList<Product> productList = new ArrayList<>();

        productList.add(new Product(10, 20));
        productList.add(new Product(30, 40));
        productList.add(new Product(50, 60));

        for (int i = 0; i < productList.size(); i++) {
            System.out.println(productList.get(i));
        }
    }
}
